package ${basePackage}.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

/**
 * @version ${version}
 * @Author ${author}
 * @Date ${createTime}
 * @注释 文件列表命令
 */
@CommandLine.Command(name="list",mixinStandardHelpOptions = true)
public class ListCommand implements Runnable{

    @Override
    public void run() {
        String inputPath = "${fileConfig.inputRootPath}";
        List<File> files = FileUtil.loopFiles(inputPath);//递归获取文件
        files.forEach(file -> {
            System.out.println(file);
        });
    }
}
